Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ICherche): add a custom cache hash to account for http params #1262

Merged
merged 5 commits into from
Sep 13, 2023

Conversation

alecarn
Copy link
Collaborator

@alecarn alecarn commented May 24, 2023

infra-geo-ouverte/igo2#928

Please check if the PR fulfills these requirements

What is the current behavior? (You can also link to an open issue here)
infra-geo-ouverte/igo2#928

What is the new behavior?
A new property to configure the SearchBar and invalidate the cache after a settings change bustCacheOnSettingChange

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications:

Other information:

@alecarn alecarn requested a review from pelord May 24, 2023 17:26
@alecarn alecarn changed the title feat(SearchBar): add a way to invalidate the cache on setting change fix(ICherche): add a custom cache hash to account for http settings May 24, 2023
@alecarn alecarn changed the title fix(ICherche): add a custom cache hash to account for http settings fix(ICherche): add a custom cache hash to account for http params May 24, 2023
@alecarn alecarn requested a review from LAMM26 May 29, 2023 13:18
@alecarn alecarn changed the base branch from master to next May 29, 2023 14:00
@alecarn alecarn requested a review from aziz-access May 31, 2023 12:27
@alecarn alecarn self-assigned this May 31, 2023
@pelord
Copy link
Member

pelord commented Jun 15, 2023

@alecarn Does the custom cache buster must be implemented for other search sources (reverse TerrApi, iLayers...?)

@alecarn
Copy link
Collaborator Author

alecarn commented Jun 15, 2023

Yes we need to change our approach for these sources. If you accept this PR, I will create another ticket to apply this solution to the problem.

@alecarn alecarn removed the request for review from LAMM26 September 8, 2023 13:01
fix(OsrmDirection): route
fix(Cadastre): search
fix(iLayer): search
fix(Nominatim): search
fix(StoredQueries): search and reverseSearch
@alecarn
Copy link
Collaborator Author

alecarn commented Sep 8, 2023

@pelord, I applied the same logic to other problematic cached query. It's ready for a second review and I will appreciate if you can test.

projects/igo2 Outdated Show resolved Hide resolved
@alecarn alecarn merged commit 776fc4b into next Sep 13, 2023
@alecarn alecarn deleted the IGO2-928_bust-the-cache-on-search branch September 13, 2023 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Réinitialiser la cache client de la recherche quand on change les options de recherche
2 participants